var timeagoInstance = timeago();
timeagoInstance.render(document.querySelectorAll('.need_to_be_rendered'), 'zh_CN');


console.log(timeagoInstance.format(Date.now() - 11 * 1000 * 60 * 60)); // will get '11 hours ago'